package com.sicau.system.domain;

import com.sicau.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sicau.common.annotation.Excel;
import com.sicau.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 消息对象 b_message
 * 
 * @author ruoyi
 * @date 2022-03-19
 */
public class BMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    private Long userId;

    private Long[] userIds;

    private String nickName;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String message;

    /** 消息类型 */
    @Excel(name = "消息类型", readConverterExp = "1=通知,2=留言")
    private String type;

    private List<SysUser> users;

    public List<SysUser> getUsers() {
        return users;
    }

    public Long[] getUserIds() {
        return userIds;
    }

    public void setUserIds(Long[] userIds) {
        this.userIds = userIds;
    }

    public void setUsers(List<SysUser> users) {
        this.users = users;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Long getId()
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setMessage(String message) 
    {
        this.message = message;
    }

    public String getMessage() 
    {
        return message;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("message", getMessage())
            .append("type", getType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
